home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / x-rotuse.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  53 lines

  1. // defines X-ROTUSE
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_X-ROTUSE_GSH
  8. #define INCLUDED_X-ROTUSE_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. #include "defaults.gsh"
  13. #include "lasers.gsh"
  14.  
  15. hierarchy Hcy_X_rotuse
  16. {
  17.     file "units\X-rotuse.RIF"
  18.     name "X-rotuse"
  19.     hotspot "dum flash"
  20. }
  21.  
  22. character Chr_X_rotuse : Chr_DefaultBaddie
  23. {
  24.     turning speed   0.3    // this is in revolutions per second
  25.     walking speed   1.0    // this is in animation cycles per second
  26.     weapon          enemy laser
  27.     strength        5    // initial strength points
  28.     aim             1    // how many degrees off target he can be at most
  29.     sight angle    80    // in degrees
  30.     sight range     8    // in metres
  31.     hearing range    20    // in metres
  32.     aggression    0.9    // from 0 to 1
  33.     gun yaw angle    0    // in degrees
  34.     description        drone description
  35. }
  36.  
  37. role Rol_X_rotuse : Rol_DefaultRobot
  38. {
  39.     shape            Hcy_X_rotuse
  40.     
  41.     character        Chr_X_rotuse
  42.         
  43.     identifier        "X_rotuse"
  44.  
  45.  
  46.     ai                bot
  47. }
  48.  
  49. ////////////////////////////////////////////////////////////////////////////////////
  50.  
  51. // end wrapper - for preventing multiple or recursive inclusions
  52. #endif // !INCLUDED_X_ROTUSE_GSH
  53.